package com.zuipin.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单表
 **/
@SuppressWarnings("serial")
public class OrderInfo implements Serializable {
	
	private Long				id;											// 主键
	
	private Long				createId;									// 创建者（后台用户订单为空）
	
	private Long				updateId;									// 更新者（后台用户订单为空）
	
	private String				createTime;									// 创建时间
	
	private String				updateTime;									// 更新时间
	
	private Short				delFlag;									// 是否删除
	
	private Long				sysId;										// 来源系统
	
	private Long				createMemberId;								// 下单人
	
	private String				orderRemark;								// 订单备注
	
	private String				customerRemark;								// 客服备注
	
	private String				orderNo;									// 订单编号
	
	private String				orderStatus;								// 订单状态:::::待付款,待审核,处理中,打包中/待发货,已发货(卖家发给买家),发往验货(卖家发往茶帮通),已入库(茶帮通已收货),验货通过(茶帮通已验货),验货不通过(茶帮通已验货),已发货(茶帮通发往买家),订单完成订单关闭,订单取消,退货完成,申请退货中
	
	private String				receiptName;								// 确认收货人（兼容旧数据放名字）
	
	private String				sendTime;									// 发货时间
	
	private String				receiptTime;								// 收货时间
	
	private String				checkTime;									// 验货时间
	
	private Long				consigneeId;								// 收货信息
	
	private String				cancelTime;									// 取消订单时间
	
	private String				cancelReason;								// 取消订单的理由
	
	private Long				orderAuditId;								// 订单审核人
	
	private String				orderAuditTime;								// 订单审核时间
	
	private String				packerId;									// 打包人(没用，数据库没子段)
	
	private String				packTime;									// 打包时间
	
	private Long				buyerId;									// 卖家ID(没用)
	
	private BigDecimal			totalWeight;								// 订单重量
	
	private String				expressNo;									// 快递单号(没用/保存到子订单)
	
	private String				expressCode;								// 快递公司编码(没用/保存到子订单)
	
	private Long				paymentOrderId;								// 付款单ID
	
	private String				expressDeliveryCode;						// 配送方式code
	
	private String				expressDeliveryName;						// 配送名称
	
	private BigDecimal			freightSum;									// 运费
	
	private BigDecimal			useCashBackSum;								// 使用的返现
	
	private BigDecimal			giveCashBackSum;							// 赠送的返现
	
	private Integer				useJfSum;									// 使用的积分（实际积分价* 数量）
	
	private Integer				productJfSum;								// 积分原价累加
	
	private Integer				giveJfSum;									// 赠送的积分
	
	private BigDecimal			orderSum;									// 订单金额(实际支付)（不含充值）含运费
	
	private Integer				growthValue;								// 成长值
	
	private BigDecimal			productPaySum;								// 商品总价（原价*数量和）
	
	private Long				closingMember;								// 结算付款人
	
	private Long				orderCloseId;								// 订单关闭人（客服）
	private String				orderCloseTime;								// 订单关闭时间
	private String				closeReason;								// 订单关闭理由
	
	private String				unionId;									// 微信vo---unionId
	private BigDecimal			internalDiscountSum;						// 内部优惠价
	private Short				isGiveGrowthValue;							// 是否派发成长值和积分
	
	private Short				isComment;									// 是否评论
	
	private BigDecimal			useRuleSum;									// 购物车优惠金额
	
	private Long				invoiceInfoId;								// 发票信息ID
	
	private BigDecimal			useStoreValue;								// 使用充值余额
	
	public static final int		MEMBER_UPDATE				= 1;			// 用户修改
	
	public static final int		SYSTEM_UPDATE				= 2;			// 系统修改
	
	public static final int		OMS_ORDER_SUCCESS			= 4;			// oms的订单完成
	
	public static final Long	ZP_SYS_ID					= 2L;
	
	public static final String	ZP_SYS_NANE					= "zuipin";
	
	public static final String	SHIP_SF						= "ship_sf";	// 顺丰速运
	
	public static final String	SHIP_STO					= "ship_sto";	// 申通E物流
	
	public static final String	SHIP_EMS					= "ship_ems";	// EMS
	
	public static final String	ST_HDFK						= "申通-货到付款";	// 申通-货到付款
	public static final String	SF_HDFK						= "顺丰-货到付款";	// 顺丰-货到付款
	
	/*
	 * 是否派发成长值和积分1:是 0否
	 */
	public static final short	IS_GIVE_GROWTH_VALUE_YES_1	= (short) 1;
	public static final short	IS_GIVE_GROWTH_VALUE_NO_0	= (short) 0;
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getId() {
		return this.id;
	}
	
	public void setCreateId(Long createId) {
		this.createId = createId;
	}
	
	public Long getCreateId() {
		return this.createId;
	}
	
	public void setUpdateId(Long updateId) {
		this.updateId = updateId;
	}
	
	public Long getUpdateId() {
		return this.updateId;
	}
	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	public String getCreateTime() {
		return this.createTime;
	}
	
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	
	public String getUpdateTime() {
		return this.updateTime;
	}
	
	public void setDelFlag(Short delFlag) {
		this.delFlag = delFlag;
	}
	
	public Short getDelFlag() {
		return this.delFlag;
	}
	
	public Long getSysId() {
		return sysId;
	}
	
	public void setSysId(Long sysId) {
		this.sysId = sysId;
	}
	
	public Long getCreateMemberId() {
		return createMemberId;
	}
	
	public void setCreateMemberId(Long createMemberId) {
		this.createMemberId = createMemberId;
	}
	
	public void setOrderRemark(String orderRemark) {
		this.orderRemark = orderRemark;
	}
	
	public String getOrderRemark() {
		return this.orderRemark;
	}
	
	public void setCustomerRemark(String customerRemark) {
		this.customerRemark = customerRemark;
	}
	
	public String getCustomerRemark() {
		return this.customerRemark;
	}
	
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	public String getOrderNo() {
		return this.orderNo;
	}
	
	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}
	
	public String getOrderStatus() {
		return this.orderStatus;
	}
	
	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}
	
	public String getSendTime() {
		return this.sendTime;
	}
	
	public void setReceiptTime(String receiptTime) {
		this.receiptTime = receiptTime;
	}
	
	public String getReceiptTime() {
		return this.receiptTime;
	}
	
	public void setCheckTime(String checkTime) {
		this.checkTime = checkTime;
	}
	
	public String getCheckTime() {
		return this.checkTime;
	}
	
	public void setConsigneeId(Long consigneeId) {
		this.consigneeId = consigneeId;
	}
	
	public Long getConsigneeId() {
		return this.consigneeId;
	}
	
	public void setCancelTime(String cancelTime) {
		this.cancelTime = cancelTime;
	}
	
	public String getCancelTime() {
		return this.cancelTime;
	}
	
	public void setOrderAuditId(Long orderAuditId) {
		this.orderAuditId = orderAuditId;
	}
	
	public Long getOrderAuditId() {
		return this.orderAuditId;
	}
	
	public void setOrderAuditTime(String orderAuditTime) {
		this.orderAuditTime = orderAuditTime;
	}
	
	public String getOrderAuditTime() {
		return this.orderAuditTime;
	}
	
	public void setBuyerId(Long buyerId) {
		this.buyerId = buyerId;
	}
	
	public Long getBuyerId() {
		return this.buyerId;
	}
	
	public void setTotalWeight(BigDecimal totalWeight) {
		this.totalWeight = totalWeight;
	}
	
	public BigDecimal getTotalWeight() {
		return this.totalWeight;
	}
	
	public void setExpressNo(String expressNo) {
		this.expressNo = expressNo;
	}
	
	public String getExpressNo() {
		return this.expressNo;
	}
	
	public void setExpressCode(String expressCode) {
		this.expressCode = expressCode;
	}
	
	public String getExpressCode() {
		return this.expressCode;
	}
	
	public void setPaymentOrderId(Long paymentOrderId) {
		this.paymentOrderId = paymentOrderId;
	}
	
	public Long getPaymentOrderId() {
		return this.paymentOrderId;
	}
	
	public String getExpressDeliveryCode() {
		return expressDeliveryCode;
	}
	
	public void setExpressDeliveryCode(String expressDeliveryCode) {
		this.expressDeliveryCode = expressDeliveryCode;
	}
	
	public void setExpressDeliveryName(String expressDeliveryName) {
		this.expressDeliveryName = expressDeliveryName;
	}
	
	public String getExpressDeliveryName() {
		return this.expressDeliveryName;
	}
	
	public void setFreightSum(BigDecimal freightSum) {
		this.freightSum = freightSum;
	}
	
	public BigDecimal getFreightSum() {
		return this.freightSum;
	}
	
	public void setUseCashBackSum(BigDecimal useCashBackSum) {
		this.useCashBackSum = useCashBackSum;
	}
	
	public BigDecimal getUseCashBackSum() {
		return this.useCashBackSum;
	}
	
	public void setGiveCashBackSum(BigDecimal giveCashBackSum) {
		this.giveCashBackSum = giveCashBackSum;
	}
	
	public BigDecimal getGiveCashBackSum() {
		return this.giveCashBackSum;
	}
	
	public void setUseJfSum(Integer useJfSum) {
		this.useJfSum = useJfSum;
	}
	
	public Integer getUseJfSum() {
		return this.useJfSum;
	}
	
	public void setGiveJfSum(Integer giveJfSum) {
		this.giveJfSum = giveJfSum;
	}
	
	public Integer getGiveJfSum() {
		return this.giveJfSum;
	}
	
	public void setOrderSum(BigDecimal orderSum) {
		this.orderSum = orderSum;
	}
	
	public BigDecimal getOrderSum() {
		return this.orderSum;
	}
	
	public void setProductPaySum(BigDecimal productPaySum) {
		this.productPaySum = productPaySum;
	}
	
	public BigDecimal getProductPaySum() {
		return this.productPaySum;
	}
	
	public void setClosingMember(Long closingMember) {
		this.closingMember = closingMember;
	}
	
	public Long getClosingMember() {
		return this.closingMember;
	}
	
	public String getCancelReason() {
		return cancelReason;
	}
	
	public void setCancelReason(String cancelReason) {
		this.cancelReason = cancelReason;
	}
	
	public String getPackerId() {
		return packerId;
	}
	
	public void setPackerId(String packerId) {
		this.packerId = packerId;
	}
	
	public String getReceiptName() {
		return receiptName;
	}
	
	public void setReceiptName(String receiptName) {
		this.receiptName = receiptName;
	}
	
	public String getPackTime() {
		return packTime;
	}
	
	public void setPackTime(String packTime) {
		this.packTime = packTime;
	}
	
	public Long getOrderCloseId() {
		return orderCloseId;
	}
	
	public void setOrderCloseId(Long orderCloseId) {
		this.orderCloseId = orderCloseId;
	}
	
	public String getOrderCloseTime() {
		return orderCloseTime;
	}
	
	public void setOrderCloseTime(String orderCloseTime) {
		this.orderCloseTime = orderCloseTime;
	}
	
	public String getCloseReason() {
		return closeReason;
	}
	
	public void setCloseReason(String closeReason) {
		this.closeReason = closeReason;
	}
	
	public String getUnionId() {
		return unionId;
	}
	
	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}
	
	public Integer getGrowthValue() {
		return growthValue;
	}
	
	public void setGrowthValue(Integer growthValue) {
		this.growthValue = growthValue;
	}
	
	public BigDecimal getInternalDiscountSum() {
		return internalDiscountSum;
	}
	
	public void setInternalDiscountSum(BigDecimal internalDiscountSum) {
		this.internalDiscountSum = internalDiscountSum;
	}
	
	public Short getIsGiveGrowthValue() {
		return isGiveGrowthValue;
	}
	
	public void setIsGiveGrowthValue(Short isGiveGrowthValue) {
		this.isGiveGrowthValue = isGiveGrowthValue;
	}
	
	public Short getIsComment() {
		return isComment;
	}
	
	public void setIsComment(Short isComment) {
		this.isComment = isComment;
	}
	
	public BigDecimal getUseRuleSum() {
		return useRuleSum;
	}
	
	public void setUseRuleSum(BigDecimal useRuleSum) {
		this.useRuleSum = useRuleSum;
	}
	
	public Long getInvoiceInfoId() {
		return invoiceInfoId;
	}
	
	public void setInvoiceInfoId(Long invoiceInfoId) {
		this.invoiceInfoId = invoiceInfoId;
	}
	
	public Integer getProductJfSum() {
		return productJfSum;
	}
	
	public void setProductJfSum(Integer productJfSum) {
		this.productJfSum = productJfSum;
	}
	
	public BigDecimal getUseStoreValue() {
		return useStoreValue;
	}
	
	public void setUseStoreValue(BigDecimal useStoreValue) {
		this.useStoreValue = useStoreValue;
	}
	
}
